package com.wsl.aop.service;

import com.wsl.aop.domain.Product;
import com.wsl.aop.security.AdminOnly;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：wangshuliang
 * @date ：Created in 2019/6/4 8:12
 * @description：产品服务类
 * @modified By：
 */
@Service
@Slf4j
public class ProductService {
    @Autowired
    private AuthService authService;

    public void insert(Product product) {
        log.info("insert product");
    }
    @AdminOnly
    public void delete(Long id) {
        //authService.checkAccess();
        log.info("delete product");
    }
}
